<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<link href="../CSS/comboBox2.css" type="text/css" rel="stylesheet"/>
</head>
<body>
<script type="text/javascript" src="../JS/DOM.js"></script>
<script type="text/javascript" src="../JS/ComboBox.js"></script>
<script type="text/javascript">
var testData = new Array();
for(var i=0; i<40; ++i) {
	testData[i] = new Array("Value " + i, "Text " + i);	
}
var testCB = new ComboBox("testCB", testData);
document.body.appendChild(testCB.getElement());

var testData2 = new Array();
for(var i=0; i<20; ++i) {
	testData2[i] = new Array("Value " + i, "Texty " + i);	
}

var testCB2 = new ComboBox("testCB2", testData2);
document.body.appendChild(testCB2.getElement());

var choice = 0;
function changeData() {
	if(choice == 0) {
		testCB.changeData(testData2);
	} else {
		testCB.changeData(testData);
	}
	choice = 1 - choice;
}

</script>
<input type="button" name="xBtn" value="Change data" onClick="changeData();"/>
a ksdfjk asdf aklsd fas djfklasjd fjasdf asd a ksdfjk asdf aklsd fas djfklasjd fjasdf asd a ksdfjk asdf aklsd fas djfklasjd fjasdf asd a ksdfjk asdf aklsd fas djfklasjd fjasdf asd a ksdfjk asdf aklsd fas djfklasjd fjasdf asd a ksdfjk asdf aklsd fas djfklasjd fjasdf asd a ksdfjk asdf aklsd fas djfklasjd fjasdf asd a ksdfjk asdf aklsd fas djfklasjd fjasdf asd a ksdfjk asdf aklsd fas djfklasjd fjasdf asd a ksdfjk asdf aklsd fas djfklasjd fjasdf asd a ksdfjk asdf aklsd fas djfklasjd fjasdf asd a ksdfjk asdf aklsd fas djfklasjd fjasdf asd a ksdfjk asdf aklsd fas djfklasjd fjasdf asd a ksdfjk asdf aklsd fas djfklasjd fjasdf asd a ksdfjk asdf aklsd fas djfklasjd fjasdf asd a ksdfjk asdf aklsd fas djfklasjd fjasdf asd a ksdfjk asdf aklsd fas djfklasjd fjasdf asd a ksdfjk asdf aklsd fas djfklasjd fjasdf asd a ksdfjk asdf aklsd fas djfklasjd fjasdf asd a ksdfjk asdf aklsd fas djfklasjd fjasdf asd a ksdfjk asdf aklsd fas djfklasjd fjasdf asd a ksdfjk asdf aklsd fas djfklasjd fjasdf asd a ksdfjk asdf aklsd fas djfklasjd fjasdf asd a ksdfjk asdf aklsd fas djfklasjd fjasdf asd a ksdfjk asdf aklsd fas djfklasjd fjasdf asd a ksdfjk asdf aklsd fas djfklasjd fjasdf asd a ksdfjk asdf aklsd fas djfklasjd fjasdf asd a ksdfjk asdf aklsd fas djfklasjd fjasdf asd a ksdfjk asdf aklsd fas djfklasjd fjasdf asd a ksdfjk asdf aklsd fas djfklasjd fjasdf asd a ksdfjk asdf aklsd fas djfklasjd fjasdf asd a ksdfjk asdf aklsd fas djfklasjd fjasdf asd a ksdfjk asdf aklsd fas djfklasjd fjasdf asd a ksdfjk asdf aklsd fas djfklasjd fjasdf asd a ksdfjk asdf aklsd fas djfklasjd fjasdf asd a ksdfjk asdf aklsd fas djfklasjd fjasdf asd a ksdfjk asdf aklsd fas djfklasjd fjasdf asd a ksdfjk asdf aklsd fas djfklasjd fjasdf asd a ksdfjk asdf aklsd fas djfklasjd fjasdf asd a ksdfjk asdf aklsd fas djfklasjd fjasdf asd a ksdfjk asdf aklsd fas djfklasjd fjasdf asd a ksdfjk asdf aklsd fas djfklasjd fjasdf asd a ksdfjk asdf aklsd fas djfklasjd fjasdf asd a ksdfjk asdf aklsd fas djfklasjd fjasdf asd a ksdfjk asdf aklsd fas djfklasjd fjasdf asd a ksdfjk asdf aklsd fas djfklasjd fjasdf asd a ksdfjk asdf aklsd fas djfklasjd fjasdf asd a ksdfjk asdf aklsd fas djfklasjd fjasdf asd a ksdfjk asdf aklsd fas djfklasjd fjasdf asd a ksdfjk asdf aklsd fas djfklasjd fjasdf asd a ksdfjk asdf aklsd fas djfklasjd fjasdf asd a ksdfjk asdf aklsd fas djfklasjd fjasdf asd a ksdfjk asdf aklsd fas djfklasjd fjasdf asd a ksdfjk asdf aklsd fas djfklasjd fjasdf asd a ksdfjk asdf aklsd fas djfklasjd fjasdf asd a ksdfjk asdf aklsd fas djfklasjd fjasdf asd a ksdfjk asdf aklsd fas djfklasjd fjasdf asd a ksdfjk asdf aklsd fas djfklasjd fjasdf asd a ksdfjk asdf aklsd fas djfklasjd fjasdf asd a ksdfjk asdf aklsd fas djfklasjd fjasdf asd a ksdfjk asdf aklsd fas djfklasjd fjasdf asd a ksdfjk asdf aklsd fas djfklasjd fjasdf asd a ksdfjk asdf aklsd fas djfklasjd fjasdf asd a ksdfjk asdf aklsd fas djfklasjd fjasdf asd a ksdfjk asdf aklsd fas djfklasjd fjasdf asd a ksdfjk asdf aklsd fas djfklasjd fjasdf asd a ksdfjk asdf aklsd fas djfklasjd fjasdf asd a ksdfjk asdf aklsd fas djfklasjd fjasdf asd a ksdfjk asdf aklsd fas djfklasjd fjasdf asd a ksdfjk asdf aklsd fas djfklasjd fjasdf asd a ksdfjk asdf aklsd fas djfklasjd fjasdf asd a ksdfjk asdf aklsd fas djfklasjd fjasdf asd a ksdfjk asdf aklsd fas djfklasjd fjasdf asd a ksdfjk asdf aklsd fas djfklasjd fjasdf asd a ksdfjk asdf aklsd fas djfklasjd fjasdf asd a ksdfjk asdf aklsd fas djfklasjd fjasdf asd a ksdfjk asdf aklsd fas djfklasjd fjasdf asd a ksdfjk asdf aklsd fas djfklasjd fjasdf asd a ksdfjk asdf aklsd fas djfklasjd fjasdf asd a ksdfjk asdf aklsd fas djfklasjd fjasdf asd a ksdfjk asdf aklsd fas djfklasjd fjasdf asd a ksdfjk asdf aklsd fas djfklasjd fjasdf asd a ksdfjk asdf aklsd fas djfklasjd fjasdf asd a ksdfjk asdf aklsd fas djfklasjd fjasdf asd 
</body>
</html>